<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>

<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <%@include file="/WEB-INF/jspf/header.jspf" %>

    <%@include file="/WEB-INF/jspf/breadcumbs.jspf" %>

    
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <h1>Garantias Agricolas</h1>
            <h:form>
                <t:dataTable id="tblCuentas" value="#{AgricolaController.agricolas}"
                             var="item" rowClasses="rowImpar, rowPar">
                    <h:column>
                        <f:facet name="header"><h:outputText value="CodGar"/></f:facet>
                        <h:outputText value="#{item.idAgricola}" />
                    </h:column>
                    <h:column>
                        <f:facet name="header"><h:outputText value="TipoGar"/></f:facet>
                        <h:outputText value="#{item.tipoprenda}" />
                    </h:column>
                    <h:column>
                        <h:commandButton value="Mostrar" />
                    </h:column>
                    <h:column>
                        <h:commandButton value="Editar" />
                    </h:column>
                    <h:column>
                        <h:commandButton value="Eliminar" />
                    </h:column>
                </t:dataTable>
            </h:form>
        </body>
    </html>
     <%@include file="/WEB-INF/jspf/footer.jspf" %>
</f:view>